﻿using library.ViewModel;
using System;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace library
{
    /// <summary>
    /// MainWindow.xaml 的交互逻辑
    /// </summary>
    public partial class MainWindow : Window
    {
        // 当前页面的 DataContext 关联的 ViewModel
        LoginViewModel loginViewModel;
        
        public MainWindow()
        {
            // 界面的初始化操作
            InitializeComponent();

            // 创建数据模型
            loginViewModel = new LoginViewModel(this);

            // 指定当前页面的数据上下文
            this.DataContext = loginViewModel;
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {

        }
    }
}
